package com.yhq.basic.function;

import java.util.function.Function;

/**
 * Function<T,R> 对T类型进行操作返回R类型
 *
 * @author hqyin
 * @date 2023/2/7 3:55 下午
 */
public class TestFunction {
    public static void main(String[] args) {
        Function<Integer, String> function = f -> "hahah" + f;
        System.out.println(function.apply(18));
    }

}


